package com.atguigu.sort;

public class ArrCreator {

    public static long startTime=0;

    public static int testVelocitySize=100000;

    public static int[] createRandArr(int size){
        int[] arr=new int[size];
        for (int i = 0; i < arr.length; i++) {
            arr[i]= (int) (Math.random()*size*100);
        }
        return arr;
    }



    public static void beforeSort(){
        startTime = System.currentTimeMillis();
        System.out.println(startTime);
    }

    public static void afterSort(){
        long endTime = System.currentTimeMillis();
        System.out.println(endTime);
        System.out.println("use time:"+(endTime-startTime));
    }
}
